<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form>
		   <table>
		   <tr>
		   	<td colspan="2" style="text-align: right;"><img style="cursor: pointer;" src="/image/admin/pic22.gif"  onclick="$.closePopupLayer()"/></td>
		   </tr>
			<tr>
			<td>类型父类</td>
			<td class='input'>
				<s:if test="bookType.parent==null">顶级类型x</s:if>
				<s:else>${bookType.parent.name}</s:else>
				<input type="hidden" value="${bookType.parent.id}" id="parentId"></input>
			</td>
			</tr>
			<tr>
				<td>类型名称</td><td class='input'><input id='typeName' type='text' maxlength='30' name="bookType.name"/></td>
				</tr>
			<tr>
				<td>类型备注</td><td class='input'><input id='remark' type='text' maxlength='50' name="bookType.remark"/></td>
			</tr>
			<tr>
				<td style='width:100px;'></td>
				<td class='input'><input type='reset' value='重置'/><input onclick='addBookType()' type='button' value='添加'/></td>
			</tr>
		</table>
	</form>
</body>
</html>